Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vlanmgrd handling of portchannel does not exist more gracefully. #3367

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented Nov 14, 2024

What I did:
Fixes sonic-net/sonic-buildimage#20684

Why I did:
It is seen when doing config reload on multi-asic (multiple instances of swss/teamd) their might be race condition when teammrd might be getting SIGTERM and cleaning up the port-channel in kernel and vlanmgrd might be adding the port channel as member in kernel and this can cause the exception as this operation as being done in async.

How I did:
To handle the failure gracefully if we get an exception when portchannel as vlan member in kernel we check if Portchannel exists and if not we just retry to minimize the risk of failure due to above race-condition.

@abdosi abdosi requested a review from prsunny as a code owner November 14, 2024 00:28
@abdosi abdosi requested review from prsunny and removed request for prsunny November 14, 2024 00:28
@abdosi abdosi changed the title Vlanmgrd Vlanmgrd handling of portchannel does not exist more gracefully. Nov 14, 2024
@abdosi
Copy link
Contributor Author

abdosi commented Nov 14, 2024

@yejianquan for viz.

@cyw233
Copy link

cyw233 commented Nov 15, 2024

Hey @abdosi, looks like the code coverage check did not pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Chassis] vlanmgrd can't up due to portchannel not up after config reload
2 participants